package org.ifilm.service;

/**
 * User Service implementation
 * 
 * @author Mustafa Genc
 *
 */
import org.ifilm.dao.UserDao;
import org.ifilm.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDao userDao;
	
	@Override
	public User createUser(User user) {
		return userDao.createUser(user);
	}

	@Override
	public User getUser(String email, String password) {
		return userDao.getUser(email, password);
	}
}